package com.applet.system.service.impl;

import java.util.List;

import com.applet.system.mapper.LoginLogMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.applet.system.entity.LoginLog;
import com.applet.system.entity.dto.LoginLogDto;
import com.applet.system.service.LoginLogService;

import javax.annotation.Resource;

@Service
public class LoginLogServiceImpl implements LoginLogService{

	@Resource
	private LoginLogMapper loginLogMapper;
	
	@Override
	public List<LoginLogDto> getPage(LoginLogDto log) {
		return this.loginLogMapper.getPage(log);
	}

	@Override
	@Transactional
	public void addLoginLog(LoginLog log) {
		this.loginLogMapper.addLoginLog(log);
	}

}
